package com.norbitltd.guavaleaves.java.lang;

import com.google.common.base.Function;

public class FloatFunctions {
	
	public static Function<Float, Float> abs() {
		return new Function<Float, Float>() {
			public Float apply(Float input) {
				return Math.abs(input);
			}
		};
	}
	
	public static Function<Float, Float> nextUp() {
		return new Function<Float, Float>() {
			public Float apply(Float input) {
				return Math.nextUp(input);
			}
		};
	}
	
	public static Function<Float, Float> signum() {
		return new Function<Float, Float>() {
			public Float apply(Float input) {
				return Math.signum(input);
			}
		};
	}
	
	public static Function<Float, Float> ulp() {
		return new Function<Float, Float>() {
			public Float apply(Float input) {
				return Math.ulp(input);
			}
		};
	}
}
